﻿/**
 * ObjectData
 * 
 * @author		Allen Chou
 * @version		1.0.2 (last update: Dec 3 2008)
 * @link        http://cjcat.blogspot.com
 * @link		http://cjcat2266.deviantart.com
 */

package idv.cjcat.physics.fenozix {
 	import idv.cjcat.CJMath;

	internal class ObjectData {
		
		internal var obj:Object;
		internal var mass:Number;
		internal var vx:Number;
		internal var vy:Number;
		
		public function ObjectData(obj:Object, mass:Number, vx:Number = 0, vy:Number = 0) {
			this.obj = obj;
			this.mass = CJMath.clamp(mass, 0, Number.MAX_VALUE);
			this.vx = vx;
			this.vy = vy;
		}
	}
}